package com.qa.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import com.qa.pojo.Demand;
import com.qa.pojo.ZNode;
import com.qa.pojo.weekplan;
import com.qa.pojo.weekplanStatistics;

public interface IWeekAndMonthService {

	int selectWeekNumIsExist(int weeknum, int usersid);

	int insertWeekPlan(List<weekplan> weekplansList);

	List<ZNode> selectDeptOrTeam(int usersid);

	List<weekplanStatistics> selectWeekPlan(int isSelf, int usersid,
			int isDeptOrTeam, int beginweeknum, int endweeknum,
			List<Integer> trueGroup, int selectPerson, int beginYear,
			int endYear);

	List<weekplan> getEditWeekPlan(int weeknum, int publish, int thisYear);

	int deleteExistWeek(int weeknum, int currenteditUsersid);

	void exportData(List<weekplan> weekplansList,
			weekplanStatistics weekplanSta, Double selfperSum,
			Double bossperSum, String templatePath, HttpServletResponse response);

	void exportDataAll(List<Map<String, Object>> listAllList,
			String templatePath, HttpServletResponse response);

	List<Demand> selectDemand(String beginTime, String endTime, int isGuoQi,
			int statusFordemand);

	int insertDemand(String beginTimeadd, String endTimeadd,
			String demandContent, int statusFordemandadd);

	int editDemand(String beginTimeadd, String endTimeadd,
			String demandContent, int statusFordemandadd, int id);

}
